From aa040e1b53e03b7587b1d5d8f401708af0367447 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 30 Dec 2008 01:48:18 +0000 Subject: [PATCH] (copy_text): To convert a non-ASCII char to unibyte, just get the low 8-bit of the code. --- src/insdel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insdel.c b/src/insdel.c index a41f03b1ba4..3483ad668cf 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -655,8 +655,8 @@ copy_text (from_addr, to_addr, nbytes, { int thislen, c; c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen); - if (!ASCII_CHAR_P (c)) - c = multibyte_char_to_unibyte (c, tbl); + if (! ASCII_CHAR_P (c)) + c &= 0xFF; *to_addr++ = c; from_addr += thislen; bytes_left -= thislen; -- 2.30.2